<?php if (!defined('THINK_PATH')) exit();?><!-- 引入头部 -->
<!DOCTYPE html>
<html lang="zh-CN" xmlns:wb="http://open.weibo.com/wb">

<head>
<meta charset="utf-8">
<title><?php echo ($pageTitle); ?>-ibeginner</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta property="qc:admins" content="11670231027166526316110063757" />


<!-- 新 Bootstrap 核心 CSS 文件 -->
<!--<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">-->
 <!-- Loading Bootstrap -->
<link href="/Public/FlatUI/css/vendor/bootstrap.min.css" rel="stylesheet">

<!-- Loading Flat UI -->
<link href="/Public/FlatUI/css/flat-ui.css" rel="stylesheet">


<link rel="shortcut icon" href="/Public/images/logo/1155606.png">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/Public/FlatUI/js/vendor/html5shiv.js"></script>
  <script src="/Public/FlatUI/js/vendor/respond.min.js"></script>
<![endif]-->

  <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="/Public/FlatUI/js/vendor/jquery.min.js"></script>
<!--<script src="/Public/js/common/jquery.color.js"></script>-->

<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/Public/FlatUI/js/flat-ui.min.js"></script>

<script src="/Public/js/home/login_register.js"></script>
<!--  新浪微博第三方登录插件  -->
<!--<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=670979742" type="text/javascript" charset="utf-8"></script>-->
<!--<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js" type="text/javascript" charset="utf-8"></script>-->
<script src="/Public/js/oauth2/wb.js?appkey=670979742&debug=true" type="text/javascript" charset="utf-8"></script>
<!-- 腾讯qq第三方登录插件 -->
<script type="text/javascript" src="/Public/js/oauth2/qq-oauth2.js"></script>

<!-- 引入打开页面显示圈圈的效果js -->
<!--
<script src="/Public/js/page-effect/classie.js"></script>
<script src="/Public/js/page-effect/snap.svg-min.js"></script>
<script src="/Public/js/page-effect/svgLoader.js"></script>
<script src="/Public/js/page-effect/my-defined-effect.js"></script>
-->
<!-- 引入多说评论插件 -->
<script src="/Public/js/duoshuo/duoshuoplagin.js"></script>
<!--  引入jQuery动画插件  -->
<script src="http://cdn.bootcss.com/jquery-easing/1.3/jquery.easing.min.js"></script>
    
<!--  自定义css  -->
<link rel="stylesheet" href="/Public/css/index.css">
<link rel="stylesheet" href="/Public/css/right-meun.css">
<!-- 自定义的响应式样式必须要放在index，否则不能覆盖原有的样式 -->    
<link rel="stylesheet" href="/Public/css/home-responsive.css"> <!-- 自定义的响应式样式 -->
    
<!-- 引入打开页面显示圈圈的效果css -->
<!--<link rel="stylesheet" href="/Public/css/page-effect/my-effect-style.css">-->

</head>
<?php
 $currentURLduoshuo = 'http'; if ($_SERVER["HTTPS"] == "on") { $currentURLduoshuo .= "s"; } $currentURLduoshuo .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $currentURLduoshuo .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"]; } else { $currentURLduoshuo .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; } ?>
<input type="hidden" value="<?php echo ($currentURLduoshuo); ?>" name="CURRENT_URL" id="CURRENT_URL_ID">

<!-- Static navbar -->
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
      </button>
      <a class="navbar-brand" href="<?php echo U('Home/Index/index');?>">
          <img src="/Public/images/logo/1155606.png" style="margin:0; padding:0;margin-top:-5px;" height="32px" width="32px">
          <font style="font-weight: bold; font-family: monospace;" class="logotext320noshow and1000-768noshow">ibeginner</font>
        </a>
    </div>
    <div class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
          <li class=""><a href="<?php echo U('Home/Index/index');?>"><span class="glyphicon glyphicon-home"></span> 主页</a></li>
        <li><a href="<?php echo U('Home/Discussion/index');?>"><span class="glyphicon glyphicon-comment"></span> 讨论</a></li>
        <li>
        
        <!-- 对于还没使用第三方登录的用户提示登录<?php echo U('Home/Discussion/commonFormNoLogin');?> -->
        <?php if(!empty($_SESSION['LOGINUSERINFO'])): ?><a href="<?php echo U('Home/TaskList/index');?>">
              <span class="glyphicon glyphicon-comment"></span> TaskList</a>
        <?php else: ?>
          <a href='#' onclick="showTaskListLoginPage()">
              <span class="glyphicon glyphicon-comment"></span> TaskList
          </a><?php endif; ?>  

        </li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-pencil"></span> 笔记 <b class="caret"></b></a>
          <ul class="dropdown-menu">
              <?php if(is_array($typeList)): $i = 0; $__LIST__ = $typeList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
                      <a href="<?php echo U('Home/Index/index', array('cont_type' => $vo['type_no']));?>" class=""><?php echo ($vo["type_name"]); ?></a>
                  </li><?php endforeach; endif; else: echo "" ;endif; ?>
          </ul>
        </li>

        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span> About Us <b class="caret"></b></a>
          <ul class="dropdown-menu">
              <li>
                  <a href="<?php echo U('Home/About/history');?>" class="" target="_blank">建站纪实</a>
              </li>
              <li>
                  <a href="#" class="">联系我们</a>
              </li>
              <li>
                  <a href="#" class="">广告联系</a>
              </li>
          </ul>
        </li>
      </ul>
    
    </div><!--/.nav-collapse -->
  </div>

</div>


</html>
<script type="application/javascript" src="/Public/js/home/index.js"></script>
<script type="application/javascript" src="/Public/js/home/endlesspage.js"></script>
    
<script type="application/javascript" src="/Public/js/right-tools/popwin.js"></script>
<!-- 引入tasklist界面转有js -->
<script type="application/javascript" src="/Public/js/tasklist/tasklist.js"></script>
<link rel="stylesheet" href="/Public/css/tasklist/style.css">

<link rel="stylesheet" href="/Public/css/right-tools/zzsc.css">
 
<body>
<!-- 引入第三方登录页面 -->

<div class="modal fade" id="showTaskListLoginPage_id" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
   <div class="modal-dialog">
	  <div class="modal-content">
	    <div class="modal-header">
	      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	      <h6 class="modal-title" id="gridSystemModalLabel">您还未登录，请使用如下的账号登录~~~</h6>
	    </div>
	    <div class="modal-body">
	      <div class="container-fluid">
	        <div class="row">
	          <div class="col-md-12">
	              <div class="ds-login"></div>  
	          </div>
	        </div>
	      
	      </div>
	    </div>
	<!--
	    <div class="modal-footer">
	      <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
	      <button type="button" class="btn btn-primary">Save changes</button>
	    </div>
	-->
	  </div><!-- /.modal-content -->
	</div><!-- /.modal-dialog -->
</div>

 <!-- 网站简介 -->
<div class="jumbotron" style="background: #f0efef;">
    <center>
        <p>好记性不如烂笔头<small style="font-size: 14px;">— 俗语</small></p>
      <footer class="text-right"></footer>
    </center>
</div>
 
   <div class="container">
    <ul class="nav nav-tabs" id="myTab"> 
      <li class="active"><a href="#new" id="new-things">未完事项</a></li> 
      <li id="complete"><a href="#complete-tab" id="compalte-things">已完成事项</a></li> 
      <li id="move2Recycle" class="smaller450noshow"><a href="#recycle">回收站</a></li> 
      <li class="smaller450noshow"><a href="#settings">设置</a></li> 
    </ul> 
       
    <div class="tab-content" style="margin:20px;">
      <div class="tab-pane" id="new">
          <div class="container">
              <div class="row">
                 <div class="col-md-12 col-sm-12 col-xs-12">
                  <form class="form-horizontal" 
                        onkeydown="if(event.ctrlKey&&event.keyCode==13) { saveTaskMsg(this); }" method="post">  
<!--                      这一列是一个新增事项的输入框 -->
                      <div class="row">
                          <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                            <input type="text" name="task_msg" id="task_msg_id" class="form-control input-lg" 
                                   placeholder="输入新事项按Ctrl+Enter键即可保存">
                              <font color="red" id="showErrorInfo"></font>
                          </div>
                        </div>
                    </form>   
                 </div>
                  
              </div> <!-- row -->
              
              <!-- ajax显示新增的任务 -->
              <div id="result"></div>
              
              
              <?php if(is_array($newList)): $i = 0; $__LIST__ = $newList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i;?><div class="row my-row-style" onmouseover="showBorder(this);" onmouseout="removeClass(this);">
    <!--                  这列显示未完成的事项 -->
                      <div class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
                          <?php echo ($vo2["task_msg"]); ?>
                      </div>

                      <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                              <span class="glyphicon glyphicon-ok" onmouseover="zoomPic(this);" 
                                onmouseout="removeClass(this);" id="show" onclick="move2Complete(this, <?php echo ($vo2["id"]); ?>);"></span>
                              &nbsp;
                              <span class="glyphicon glyphicon-remove" onmouseover="zoomPic(this);" 
                                onmouseout="removeClass(this);" id="show" onclick="move2Recycle(this, <?php echo ($vo2["id"]); ?>);"></span>
                      </div>
                  </div><?php endforeach; endif; else: echo "" ;endif; ?>
          </div>
          
      </div> 
      <div class="tab-pane" id="complete-tab">
          <?php if(is_array($completeList)): $i = 0; $__LIST__ = $completeList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i;?><div class="row my-row-style">
                 <div class="col-lg-10 col-md-12 col-sm-12 col-xs-12">
                      <?php echo ($vo2["task_msg"]); ?>
                  </div>
             </div><?php endforeach; endif; else: echo "" ;endif; ?>
      </div> 
      <div class="tab-pane" id="recycle">
        <?php if(is_array($deleteList)): $i = 0; $__LIST__ = $deleteList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i;?><div class="row my-row-style">
                 <div class="col-lg-10 col-md-12 col-sm-12 col-xs-12">
                      <?php echo ($vo2["task_msg"]); ?>
                  </div>
             </div><?php endforeach; endif; else: echo "" ;endif; ?>
      </div> 
      <div class="tab-pane" id="settings">settings</div> 
    </div> 

</div> <!-- /container -->
     
</body>

<!-- 引入尾部 -->

<center>
<div class="container-fluid navbar-fixed-bottom" style="padding:0;">
    <footer class="footer" style="color:#3c5269; padding: 10px 0 1px 0;">
        <p style="text-center">
            CopyRight ©2014,Site Build By Ubuntuvim.
            <font class="logotext320noshow">广西梧州富民三路82号</font>
        </p>
    </footer>
</div>
</center>